A simple two-resistor voltage divider is perfect for safely stepping down a voltage (like connecting a 5V sensor to a 3.3V microcontroller pin).