#include < Wire.h >
#include < LiquidCrystal_I2C.h >
// Defines for the pins
#define trigPin 9
#define echoPin 10
#define LEDRed 4
#define LEDYellow 5
#define LEDGreen 6
#define buzzer 7
// Variables
int sound = 500;
unsigned long previousTime = 0;
int period = 1000;
// Initializing I2C interface with address of LCD module
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// Begin serial communication
Serial.begin(9600);