maybe set it up as a voltage divider, but use the comparater or A/D to decide if it's on or off?