how do i declare analog sensors? i get this error when running. code is on the bottem
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
sketch_jan21a.ino: In function 'void setup()':
sketch_jan21a:8: error: 'sensor0' was not declared in this scope
sketch_jan21a:8: error: 'AnalogRead' was not declared in this scope
sketch_jan21a:8: error: 'sensor5' was not declared in this scope
sketch_jan21a:10: error: 'sensor1' was not declared in this scope
sketch_jan21a:12: error: 'serial0' was not declared in this scope
sketch_jan21a:17: error: 'sensor2' was not declared in this scope
sketch_jan21a:19: error: 'serial0' was not declared in this scope
sketch_jan21a:24: error: 'sensor3' was not declared in this scope
sketch_jan21a:26: error: 'serial0' was not declared in this scope
sketch_jan21a:37: error: 'sensor4' was not declared in this scope
sketch_jan21a:39: error: 'sensor1' was not declared in this scope
sketch_jan21a:41: error: 'serial0' was not declared in this scope
sketch_jan21a:46: error: 'sensor2' was not declared in this scope
sketch_jan21a:48: error: 'serial0' was not declared in this scope
sketch_jan21a:53: error: 'sensor3' was not declared in this scope
sketch_jan21a:55: error: 'serial0' was not declared in this scope
sketch_jan21a:68: error: 'sensor1' was not declared in this scope
sketch_jan21a:70: error: 'serial0' was not declared in this scope
sketch_jan21a:75: error: 'sensor2' was not declared in this scope
sketch_jan21a:77: error: 'serial0' was not declared in this scope
sketch_jan21a:82: error: 'sensor3' was not declared in this scope
sketch_jan21a:84: error: 'serial0' was not declared in this scope
test.ino: In function 'void setup()':
test:18: error: redefinition of 'void setup()'
sketch_jan21a:4: error: 'void setup()' previously defined here
test.ino: In function 'void loop()':
test:24: error: redefinition of 'void loop()'
sketch_jan21a:102: error: 'void loop()' previously defined here
ime new to programming but i changed the seriel ports
still getting errors
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
sketch_jan27a.ino: In function 'void setup()':
sketch_jan27a:8: error: 'sensor0' was not declared in this scope
sketch_jan27a:8: error: 'AnalogRead' was not declared in this scope
sketch_jan27a:8: error: 'sensor5' was not declared in this scope
sketch_jan27a:10: error: 'sensor1' was not declared in this scope
sketch_jan27a:12: error: 'serial' was not declared in this scope
sketch_jan27a:17: error: 'sensor2' was not declared in this scope
sketch_jan27a:19: error: 'serial' was not declared in this scope
sketch_jan27a:24: error: 'sensor3' was not declared in this scope
sketch_jan27a:26: error: 'serial' was not declared in this scope
sketch_jan27a:37: error: 'sensor4' was not declared in this scope
sketch_jan27a:39: error: 'sensor1' was not declared in this scope
sketch_jan27a:41: error: 'serial' was not declared in this scope
sketch_jan27a:45: error: 'sensor2' was not declared in this scope
sketch_jan27a:47: error: 'serial' was not declared in this scope
sketch_jan27a:51: error: 'sensor3' was not declared in this scope
sketch_jan27a:53: error: 'serial' was not declared in this scope
sketch_jan27a:65: error: 'sensor1' was not declared in this scope
sketch_jan27a:67: error: 'serial' was not declared in this scope
sketch_jan27a:71: error: 'sensor2' was not declared in this scope
sketch_jan27a:73: error: 'serial' was not declared in this scope
sketch_jan27a:77: error: 'sensor3' was not declared in this scope
sketch_jan27a:79: error: 'serial' was not declared in this scope
i still get errors This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
sketch_jan27a.ino: In function 'void subroutine()':
sketch_jan27a:16: error: 'AnalogRead' was not declared in this scope