#include #include ADS1015 adcSensor; void setup() { Wire1.begin(); Serial.begin(9600); if (adcSensor.begin(0x48, Wire1) == true) // connect to device at address 0x48 { Serial.println("Device found. I2C connections are good."); } else { while(1) { Serial.println("Device not found. Check wiring."); } } } void loop() { uint16_t channel_A0 = adcSensor.getSingleEnded(0); Serial.print("A0:"); Serial.println(channel_A0); delay(50); // avoid bogging up serial monitorĀ² }