/* inputdevices_lm Reads two analogue inputs on A2 and A3 and sends the results over the serial link. Developed as part of an assignment for Fab Academy 2017 This example code is in the public domain. */ // the setup routine runs once when you press reset: #include SoftwareSerial mySerial(0,1); // Rx, TX void setup() { // initialize serial communication at 9600 bits per second: mySerial.begin(9600); } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin 0: int sensorValue1 = analogRead(A2); int sensorValue2 = analogRead(A3); // print out the value you read: mySerial.print("Thermistor ADC count is "); mySerial.print(sensorValue1); mySerial.print(" and reference ADC count is "); mySerial.print(sensorValue2); mySerial.print('\n'); delay(1000); // delay in between reads for stability }