Quote Originally Posted by BrianT View Post
Hi darrel,
I don't think that is it.
Oh, I agree with your other post for the "IT".
Unless it's a pre-biased transitor, as soon as it trys to engage the relay, it's going to reset the PIC.

Was just trying to add some more.
And after looking a little further, I'd say, leave the sensor like it is, But add a 10K resitor from the N.O. output to gnd.

That would still give the voltage divider, and some protection against incorrect wiring.

I know you can clamp things with the diodes, I see it used all the time for RS232 etc.
Just a personal thing I guess. I try to keep the inputs between 0-5V at all times.
<br>