Cheap and good way to feed 12v digital input

Ahh my bad... resistor divider!