[SOLVED] String comparison after serial read

First all the stuff with "h" is not needed!.

Second you need to check that you have the whole line (in this case).

Third you are not being sent on/off you are also getting newline or depending on the monitors settings.

Mark