This example code is in the public domain. https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogInput int sensorPin = A0; // select the input pin for the ...