Added the new s2-bgy sensor on pind D5

This commit is contained in:
Amritanshu Agrawal 2024-05-14 06:26:53 +05:30
parent b9b149407e
commit 82402f024a

View File

@ -12,12 +12,12 @@ const uint32_t connectTimeoutMs = 5000;
// MQTT settings // MQTT settings
const char* mqttServer = "iot.tanshu.com"; const char* mqttServer = "iot.tanshu.com";
const int mqttPort = 1883; const int mqttPort = 1883;
const char* mqttClientId = "s3-roy"; const char* mqttClientId = "s2-bgy";
const char* mqttUser = "esp8266"; const char* mqttUser = "esp8266";
const char* mqttPassword = "esp8266"; const char* mqttPassword = "esp8266";
// DHT sensor pin // DHT sensor pin
const int dhtPin = D4; const int dhtPin = D5;
// Initialize the DHT sensor // Initialize the DHT sensor
DHT dht(dhtPin, DHT22); DHT dht(dhtPin, DHT22);