#include <LiquidCrystal_I2C.h>
#define BUZEER_PIN 3
#define LDR_PIN A0
void setup()
{
pinMode(BUZEER_PIN, OUTPUT);
}
void loop()
{
int val, frequency;
val = analogRead(LDR_PIN);
frequency = map(val, 0, 1023, 3500, 4500);
tone(BUZEER_PIN, frequency, 20);
}