How to Check Room Temperature & Humidity with Arduino on Tinkercad
"Want to monitor your room’s temperature and humidity using Arduino? Let’s learn how to do it in Tinkercad in just 4 Minuets!
First, log in to Tinkercad and create a new circuit. Drag an Arduino Uno and a DHT11 sensor from the components menu. Connect the DHT11’s VCC to Arduino’s 5V, GND to GND, and the signal pin to digital pin 2.
Now, head to the code editor. Switch to text mode and use the pre-written DHT library to read temperature and humidity. Upload your code and start simulation. You’ll see real-time data in the serial monitor!
Quick and easy, right? Try it now and explore the possibilities with Arduino!"
"Follow for more quick tutorials!"
Video Code:
#define DHTPIN 7 // Pin where the DHT11 sensor is connected
#define DHTTYPE 11 // DHT11 sensor type
// Simulate sensor data
int humidity = 50; // Example static humidity value (50%)
int temperature = 25; // Example static temperature value (25°C)
void setup() {
Serial.begin(9600); // Start serial communication
}
void loop() {
// Simulate reading the sensor by printing predefined values
// In a real scenario, you would read from the sensor like this:
// float humidity = dht.readHumidity();
// float temperature = dht.readTemperature();
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
delay(2000); // Delay of 2 seconds
}
#TinkercadCircuits
#Tinkercad
#Arduino
#Electronics
#DIYProjects
#CircuitDesign
#TinkercadTutorial
#TechEducation
#MakerCommunity
#STEMLearning
#ElectronicsProjects
#CircuitSimulation
#EngineeringForBeginners
#TinkercadDesign
#ArduinoProjects