would test it directly, but my whole project has been installed and I can only test the code on site and infrequently. As such, I was hoping for a quick answer so I can save a bit of troubleshooting when I get there.
@m12lrpv,
I didn't see you answer the OP's question.
If he does the homework I gave him he will be prepared for an analog or a digital solution.(Neither of which you offered, I might add)
You told him what voltage levels he might be dealing with, but you didn't "bother" to tell him how to apply that information, like for example that the analog readings are 0 to 1023 which makes each count about 4.8mV so 0.6V =125 (+/-5) counts so if he is looking for a low he would do something like this :
int val= 0;
val = analogRead(analogPin); // read the input pin
if (val<100)
{
STATE=0;
}
else
{
STATE=1;
}
OR if it is digital;
int val= 0;
val = digitalRead(inPin);
if (val==LOW)
{
STATE=0;
}
else
{
STATE=1;
}