Table no.1Microstation from Arduino using LCD display ,dht 11,bread board ,9V battery jumper wire using temperature humidity sensor.(stage 1)

Team members

Teacher- Geeta Kumari

Student 1- Nouman shaikh

Student 2- Aadil Menon

Microstation from Arduino using LCD display ,dht 11,bread board ,9V battery jumper wire using temperature humidity sensor.(stage 1)

Code-#include “DHT.h” // Include the DHT library

#define DHTPIN 2 // Define the digital pin the sensor is connected to
#define DHTTYPE DHT11 // Define the sensor type (DHT11 or DHT22)

// Initialize DHT sensor.
DHT dht(DHTPIN, DHTTYPE);

void setup() {
Serial.begin(9600); // Start serial communication at 9600 baud rate
Serial.println(“Starting DHT sensor readings…”);
dht.begin(); // Initialize the sensor
}

void loop() {
// Wait a few seconds between measurements.
delay(2000); // Recommended sampling rate for DHT sensors is every 2 seconds

// Read data and store it in variables
float humidity = dht.readHumidity(); // Read humidity (in %)
float temperatureC = dht.readTemperature(); // Read temperature in Celsius
float temperatureF = dht.readTemperature(true); // Read temperature in Fahrenheit

// Check if any reads failed and print an error message
if (isnan(humidity) || isnan(temperatureC)) {
Serial.println(“Failed to read from DHT sensor!”);
return;
}

// Print the values to the Serial Monitor
Serial.print("Humidity: “);
Serial.print(humidity);
Serial.print(”% ");
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.print("C | ");
Serial.print(temperatureF);
Serial.println(“F”);
}

Please use the pressure sensor .