#include #include /*************************************************** /MINDS-i Calibration. mymindsi.com / /Analog Sensor Calibration / /This Analog Sensor Calibration code is used to test /and adjust various analog sensors as well as to establish /the measurement that it’s reading. Because each sensor /varies, this calibration is necessary before applying /it in your code to avoid malfunctions. / /To learn more about the analog sensors visit: /http://arduino.cc/playground/Main/InterfacingWithHardware /***************************************************/ int val; void setup() { Serial.begin(9600); //start a serial connection } void loop() { val = analogRead(A0); //read in the value on analog pin 0 Serial.println(val); //send a string or value on the serial connection }