#include <WiFi.h>//library for MQtt
#include <PubSubClient.h>//library for MQtt
#define trigerPin 12
#define echoPin 13
#define pitch 262
#define ledPin 14
#define distance_threshold 150
#define LED 2
#define LED2 5
#define LED3 4
#define LED4 18
#define LED5 19
int LDRReading = 0;
int threshold_val =800;
int LEDBrightness = 0;
int flag=0;
int LDR = 32;
double duration, Distance;
void callback(char* subcribetopic, byte* payload,unsigned int payloadLength);