#include <Wire.h>
#include <Adafruit_ADS1X15.h>
Adafruit_ADS1115 ads; // Create an instance of the ADS1115 library
const int ldrPin =0 ; // Assuming you are using channel 0 for the LDR sensor
void setup() {
Serial.begin(9600);
ads.begin();
}
void loop() {
int16_t measure = ads.readADC_SingleEnded(ldrPin); // Read the voltage from the LDR sensor
Serial.println ( measure ) ; // Print the measured value
delay (1000) ; // Wait f o r 1 second before reading again
}