Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
IR Wireless Temperature Sensor Using Ultrasonic sensor HCSR04 & MLX90614
Just Do Electronics
January 31, 2021
Code :-
//Prateek //www.prateeks.in #include
#include
#include
LiquidCrystal_I2C lcd(0x3F, 16, 2); Adafruit_MLX90614 mlx = Adafruit_MLX90614(); const int trigPin = 7; const int echoPin = 6; const int buzzer = A3; double temp_obj; long duration; int distance = 0; void setup() { Serial.begin(9600); lcd.init(); lcd.backlight(); pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output pinMode(echoPin, INPUT); pinMode(buzzer, OUTPUT);// Sets the echoPin as an Input mlx.begin(); lcd.setCursor(3, 0); lcd.print("WelCome To"); lcd.setCursor(0, 1); lcd.print("JustDoElectronic"); delay(2000); lcd.clear(); lcd.setCursor(0, 0); lcd.print("Design By :-"); lcd.setCursor(0, 1); lcd.print("Prateek"); delay(2000); } void loop() { digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); //read the raw timer value distance = duration * 0.034 / 2; //Calculate the distance lcd.clear(); lcd.print("Distance:"); lcd.println(distance); lcd.setCursor(0, 1); lcd.print("Temp. :"); lcd.print(mlx.readObjectTempC()); lcd.println("*C"); temp_obj = mlx.readObjectTempC(); if (temp_obj > 37) { digitalWrite(8, HIGH); Serial.print("Warning...HIGH TEMP..."); lcd.clear(); lcd.print("HIGH TEMP"); delay(5000); } else { digitalWrite(8, LOW); } delay(500); }
0 Comments
Newer
Older
ESP32 Interfacing With LDR Sensor
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
How To Make RFID & Keypad Based Door Lock
Esp32 Cam Based Face Unlock
NRF Based Servo Motor Control
Ultrasonic Sensor as a Counter with Arduino
IoT Based Patient Health Monitoring System Using Blynk App
ESP32 Led Blink With Push Button
How to Make a Conveyor Belt System | Counter Machine
Measure CO2 Level in Air Using Arduino
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments