Thank you for all of your help so far, however you don't seem to think that a MUST is a MUST. I have thought of most of solutions provided for me already, and I am thankful for them. Its just that these solutions do not meet the needs of this project. It's already almost on post 40 and people are still recommending solutions that do not fit my needs. So I will try and clarify what must be done, and hopefully you can help me with what I can not figure out.
Constraints: One end of sensor MUST be connected to 24VAC the other end to ground.
Thank you for the suggestion of a series of resistors to drop the voltage going into the 5V pin of the micro. However this would not work directly because its connected to ground. A work around would be to branch off of the switched output end and use resistors to drop it down to 5V.
This still leaves a problem of a "short circuit" from 24VAC to ground minus the power lost going into the micro-controller.
The resistance of the sensor is about 100ohm.
Constraints: One end of sensor MUST be connected to 24VAC the other end to ground.
Thank you for the suggestion of a series of resistors to drop the voltage going into the 5V pin of the micro. However this would not work directly because its connected to ground. A work around would be to branch off of the switched output end and use resistors to drop it down to 5V.
This still leaves a problem of a "short circuit" from 24VAC to ground minus the power lost going into the micro-controller.
The resistance of the sensor is about 100ohm.