Trying to get a Status Message based on Pin ON or OFF using digitalRead() Help!!

Thanks

The code you posted does not compile.

Please use
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags.

Where did you equate HIGH and LOW to ON and OFF (or vice versa) ?

Please remember to use code tags when posting code.

Sorry!

Apparently politely asking twice was not enough. Maybe this will work...

AWOL:
Please remember to use code tags when posting code.

Sorry again this is all new to me!!

#define ON false // relay actually on
#define OFF true // relay actuall off

digitalRead returns neither false nor true. It returns LOW or HIGH. Because of the way C treats integral values that is very likely a difference without distinction. However, that may not be true with a future version / ported version. So, I suggest this...

#define ON HIGH // relay actually on
#define OFF LOW // relay actuall off

SEBA11:
I'm trying to get a "Status Message" based on a series of pins "ON" or "OFF"

What happens when you run your program?

Everything works - except the display shows no text on the "status" line - so it's not telling me what's is doing.

Not even "DHT11 Test!" ?