     Serial.println("Sensor not present");
   }
   
-  /*if(sensor.isPresent()) {
+  /*
+  // to check the sensor present
+  if(sensor.isPresent()) {
     Serial.println("Sensor present");
   } 
   else {

/*

 Example of AS_BH1750 library usage.
 
 This example initalises the BH1750 object using the default
 high resolution mode and then makes a light level reading every second.
 
 Connection:
 VCC-5v
 GND-GND
 SCL-SCL(analog pin 5)
 SDA-SDA(analog pin 4)
 ADD-NC or GND
 
 */

#include <Wire.h>

void setup(){
  Serial.begin(9600);
  delay(50);
  
  // for normal sensor resolution (1 lx resolution, 0-65535 lx, 120ms.) use: sensor.begin(RESOLUTION_NORMAL, false);
  // Initialize sensor. if sensor is not present, false is returned
  if(sensor.begin()) {
    Serial.println("Sensor initialized");
  } 
