5V to 3.3V logic level converter
You can use any N-Channel MOSFET, not just BSS138.
It is pretty simple. This is bidirectional level converter:







simulate this circuit &ndash; Schematic created using CircuitLab

UPDATE:
By "any" I meant any jellybean small signal mosfet. Simply with low Vgs voltage threshold.