#include #include /*************************************************** /MINDS-i Calibration. mymindsi.com / /QTI Calibration / /This QTI Calibration code is used to test /and adjust your QTI sensor 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 QTI sensor visit: /http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/QTI/List/0/SortField/4/ProductID/100/Default.aspx /***************************************************/ int val; void setup() { Serial.begin(9600); //start a serial connection } void loop() { val = QTI(A0); //save the value read by the QTI sensor on analog pin 0 Serial.println(val); //send a string or value on the serial connection }