Im trying to do Project 6 in the Arduino projects book but I keep getting the same error and i could really use some help. here the error "Compilation error: 'SensorValue' was not declared in this scope" and here's my code:
int sensorValue;
int sensorLow = 1023;
int sensorHigh = 0;
const int LedPin = 8;
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.