Friday, June 14, 2024

Contactless IR Thermometer For COVID-19 Detection

ashwiniDue to the break out of COVID-19, we need to check our body temperature wherever we go –  from hospitals to airports – to detect any symptoms of the disease. Since the virus spreads through physical contact, we need to come up with a solution that enables us to measure the body temperature without contact. 

So today we will design an IR-based contactless thermometer using the MLX90614 sensor. This contactless device can also be used for other purposes like measuring the environment temperature or for measuring the temperature of water, flame and other objects. 

Bill of Material

Let’s start our project by collecting the following components.

- Advertisement -


Open Arduino IDE. Go to Sketch and then open the Library Manager. Search the following libraries and install them.

  • U8g2
  • Adafurit_Mlx90614

To begin coding, add the libraries in the code and then create a setup function where the serial port baud rate is set to 9600. After that, initialise the sensor and the OLED communication.

Next, create a loop function where we will update the sensor readings and display that on the OLED display.

- Advertisement -

We will also make a small thermometer icon on the OLED display, which will show the rise and fall levels according to the readings of the temperature sensor. To do so, we have to map the sensor readings with the height of the OLED display and then draw a frame to show the rise and fall of temperature using the following code.


After writing the code, upload it to Arduino and then connect all the components as shown in the circuit diagram. 



Congrats!! Now our device is ready. Power the device with 5V and then point the sensor towards your body. It will show your body temperature. By pointing the device towards flame, food or any other materials, their temperature can be detected as well. 


Ashwini Sinha
Ashwini Sinha
A tech journalist at EFY, with hands-on expertise in electronics DIY. He has an extraordinary passion for AI, IoT, and electronics. Holder of two design records and two times winner of US-China Makers Award.



Unique DIY Projects

Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components