ESP32 Projects

ESP32 SIM7600G 4G LTE Blynk and MLX90614 Infrared Temperature Sensor

Last Updated on September 14, 2026 by Engr. Shahzada Fahad

ESP32, SIM7600G, and BLYK:

Today, we are going to make an IoT-based temperature monitoring and control system using the ESP32 WiFi + Bluetooth module, the SIM7600G 4G LTE module, the MLX90614 Non-Contact infrared temperature sensor, a 110/220Vac bulb, and the Blynk application.



IoT based temperature monitoring using ESP32, SIM7600G 4G LTE, and Blynk
IoT temperature monitoring using ESP32, SIM7600G 4G LTE, and Blynk

I have already completed a similar project; in that project, I requested the temperature sensor value through a simple text command.

Additionally, I was controlling a 110/220Vac load with the help of commands sent via text messages. When a specified load was turned ON or OFF, the controller would send me a feedback message.

This was a beginner’s level project, and I made it just to demonstrate how to send and receive text messages using the SIM7600G 4G LTE module. Since I had to explain everything at a very basic level, thats why I did all the connections on a breadboard.




SIM7600G 4G LTE module connected with ESP32
SIM7600G 4G LTE module with ESP32

You can see the wiring is very congested and confusing. In this kind of wiring, there’s a high risk of damaging the components, and I don’t want the SIM7600G to be damaged due to any of my mistakes. Since I have to use the SIM7600G GSM module in many projects, I can’t afford to do this much wiring every time.



ESP32 development board with 5V 3A power supply
ESP32 development board with 5V 3A power supply

So, I decided to design my own ESP32 based development board for the SIM7600G; so that I can easily use it in basic, intermediate, and advanced-level projects. If you also want to make this development board, then you can watch my previous video and you can also read my article.

Amazon Links:

ESP32 WiFi + Bluetooth Module

SIM7600G 4G LTE Module

4-Channels Solid relay module

MLX90614 Non-contact Infrared Temperature Sensor

Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Connect the VCC and GND wires of the MLX90614 non-contact infrared temperature sensor to the ESP32 3.3V and GND. Connect the SDA and SCL pins to the ESP32 GPIO 21 and 22.

The 5V and GND pins of the SIM7600G 4G LTE module are connected to the 5V and 3A power supply. And the Rx and Tx pins are connected to the ESP32 GPIOs 2 and 4.

This 5V SPDT relay is connected to the ESP32 GPIO 13.



ESP32 SIM7600G Blynk IoT project circuit diagram with MLX90614 temperature sensor
ESP32 SIM7600G Blynk IoT project circuit diagram with MLX90614

For the connections you can follow this circuit diagram. In the circuit diagram you can see the 5V and GND wires; connect these wires to a regulated 5V power supply; it should be at least 2 to 3A.  Now let’s start with the Blynk Web Dashboard setup.

Blynk Web Dashboard Setup:

  • While you are logged-in into your Blynk account.
  • Click on the New Template.
  • Write the Template Name.
  • While ESP32 is selected as the Hardware type.
  • Select the connection type as GSM.



Create a new Blynk template for ESP32 IoT project
Creating a new Blynk template for ESP32

After this, all the steps are exactly the same. The only difference this time is that we selected GSM instead of WiFi in the connection type. Anyway, next click on the Datastreams. Then click on the New Datastream and select the Virtual Pin

New Blynk datastream setup for ESP32 IoT project
Creating a new datastream in Blynk for ESP32

Then enter the required credentials and click on the create button.




Temperature datastream setup in Blynk for ESP32 IoT project
Temperature datastream for ESP32 in Blynk

Then again click on the New Datastream

Relay control using ESP32 and Blynk IoT
Relay control with ESP32 using Blynk IoT

Repeat the same steps for all the other 3 relays and select virtual pins V2, V3, and V4.



Blynk datastreams setup for ESP32 IoT project
Blynk datastreams for ESP32 IoT project

Then click on the web dashboard and double click on the Gauge to add it in the dashboard.

Blynk gauge settings for ESP32 temperature monitoring project
Blynk gauge settings for ESP32 temperature monitoring

Click on the Gauge settings gear icon, and from the datastreams select V0.

Linking a datastream variable in Blynk for ESP32 IoT project
Linking the variable in Blynk for ESP32

Next, add a switch to the dashboard and repeat the same steps.



Adding a switch to the Blynk dashboard for ESP32 IoT project
Adding a switch in Blynk for ESP32 relay control

Click on the settings icon of the button and select the desired datastream. We created datastreams for 4 buttons.

Repeat the same steps for the other 3 relays.

A Gauge and all the 4 buttons have been added. Now, we can click on the Save button.

Now click on the devices and then click on new device and click on From template.



Now select the template “MLX sensor with ESP32 using SIM7600G” and click on the Create button.

Then copy the credentials

 

Paste these credentials in the code

ESP32 SIM7600G Blynk Programming:




Don’t forget to change the GPRS Credentials.

If this is your first time using the ESP32 WiFi + Bluetooth module then you will also need to install the ESP32 board in the Arduino IDE. For this you can read my getting started article on the ESP32 WiFi + Bluetooth Module.

Next, you will also need to install the entire blynk library package. For this simply go to the Sketch Menu, then to Include Library, and click on the Manage Libraries. Type Blynk in the search box.

You can see I have also installed this library. It works with over 400 boards.  Finally, you can upload the program, in my case I have already uploaded this program. Next, you can start with the Blynk IoT Application setup on your smartphone.

Blynk IoT App setup on Smartphone:

Open the blynk App on your smartphone and click on the “MLX sensor with ESP32 using SIM7600G”.

Then click on the setting button to enter to the developer mode

 

 

Now, you can click on the + button to add the widgets and assign the virtual variables or datastreams we created.

If you face any issues then you can watch video tutorial given at the end of this article.

Anyway, our application is also ready, now let’s start the practical demonstration.

Practical Demonstration:

I have powered up the project using a 12V adaptor.



SIM7600G 4G LTE GSM module for ESP32 IoT projects
SIM7600G 4G LTE GSM module

Right now, you can see it’s connected to the GSM network. In my area, the 4G network is fully functional; so, as soon as I power up this project, the SIM7600G-H immediately connects to the network. However, if the 4G network weren’t functional in my area, I could still use it because it’s also fully compatible with 3G and 2G networks.



MLX90614 non-contact infrared temperature sensor with ESP32 and Blynk
MLX90614 infrared temperature sensor with ESP32 and Blynk

For demonstration purposes, I have connected this 110/220Vac bulb. Instead of this bulb, you can connect a motor or any other load. You can also connect a DC load. Although this load is optional, I have used it so that I can explain my point of view. For example, if the temperature increases above certain threshold value, we can use this relay to disconnect the power supply or turn off that load. I hope you understand what I’m trying to say.

Safety:

Anyway, remember, safety first: When the 110/220Vac supply is connected, never touch the relay contacts as it can be extremely dangerous. It is important to note that when working with mains voltage, proper safety precautions should always be taken, and it is advisable to consult relevant electrical codes and standards.

ESP32 MLX90614 SIM7600G 4G LTE and Blynk IoT temperature monitoring project
ESP32 MLX90614 SIM7600G 4G LTE and Blynk IoT project

To monitor the temperature and to turn the load ON or OFF, we no longer need to write text messages. Because now, with the help of the Blynk application, we can monitor the temperature in real-time.

It doesn’t matter which country you are in; if you have internet access, you can monitor the temperature and also turn the load ON or OFF in real-time.

So, that’s all for now.

Support me on Patreon:

If you enjoy my work and find these projects helpful, please consider supporting me on Patreon. With just $1, you can get access to all project source codes, schematics, and extra resources that I share with my supporters. Your support helps me continue creating new electronics tutorials, experiments, and open projects for the community. Thank you so much for being part of this journey and for supporting my work!

Watch Video Tutorial:

I Built an ESP32 IoT Device That Works Without WiFi!  | SIM7600G 4G LTE

 

 

 


Discover more from Electronic Clinic

Subscribe to get the latest posts sent to your email.

Engr. Shahzada Fahad

Engr. Shahzada Fahad is an Electrical Engineer with over 15 years of hands-on experience in electronics design, programming, and PCB development. He specializes in microcontrollers (Arduino, ESP32, STM32, Raspberry Pi), robotics, and IoT systems. He is the founder and lead author at Electronic Clinic, dedicated to sharing practical knowledge.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Discover more from Electronic Clinic

Subscribe now to keep reading and get access to the full archive.

Continue reading

Electronic Clinic
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.