how do I know what speed to change my bike to when I start going uphill, downhill, flat, or anywhere else?
Whatever's comfortable for you. For down hill it's better to have it in a higher gear, for uphill it's easier to have it in a lower gear.
I just change gears depending on how tired I am/fast I want to go.
whatever you feel. go with the flow.