Translate low logic level to higher voltage range
Use a transistor as level shifter, as:







simulate this circuit &ndash; Schematic created using CircuitLab

Transition from higher voltage level to lower uses a PNP transistor in similar
fashion (and there are other variants, that allow a level translation
without signal inversion).