The LED is just not changing light intensity. I am using a 10K Resister at the LED. I even tried using the dimmer using a Potentiometer. But no significant changes in LED was seen. What could be going wrong?
Actually if the sensor is coming in over serial, like you're using some wireless setup, then it would really help to know what info you're getting. Problem should be obvious if you told us what Serial Monitor is saying you're receiving.
Time to read Serial IInput Basics - updated and apply the principles. I think the first example uses a line feed to detect the end of the received data.
50 (equals 0x32 and) is the digit 2 that you typed
53 (equals 0x35 and) is the digit 5 that you typed
48 (equals 0x30 and) is the digit 0 that you typed
13 (equals 0x0D and) is the carriage return that you have configured in serial monitor.
13 (equals 0x0A and) is the linefeed that you have configured in serial monitor
Yes I did. I am using a lower ohm resister now. That is what i am thinking....the LED did not glow bright even with the Potentiometer to the least level...
But now it works fine.