[MERGED] What's the correct way of reducing this sensor from 12v to 5v?

This topic has been merged into How do I get the boolean code, true or false, for this sensor?.