Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Projects
  3. ›Thermal hot-spot finder

Sensor projects

Find hot spots and heat leaks with an MLX90640 thermal camera

A 32 x 24 pixel thermal sensor on an ESP32 prints a heat map and the hottest spot: find warm motors, leaky windows and loose joints.

By Geekobot Learning Team

Intermediate
Difficulty
2 hours
Build time
₹7,225
Parts cost
4
Parts
ESP32
Platform
Add all parts · ₹7,225Start building
  • Measurement & tools
  • Home automation
  • Energy & power
C3
Tap a part to see what it does
OverviewPartsWiringBuildCodeTroubleshootFAQIdeas

What you'll build

The MLX90640 measures temperature at 768 points at once. Read over I2C by an ESP32, it shows where a panel, motor, window or wire joint is hotter than its surroundings. This sketch prints a coarse heat map and the minimum, maximum and centre temperatures.

What you'll learn

  • How thermopile array sensors work
  • I2C speed and frame rates
  • Emissivity: why shiny metal reads wrong
Safety

Do not open live mains panels to take readings; a qualified electrician should do that.

  1. SenseMLX90640 32 x 24 thermal array
  2. ThinkESP32 finds min, max and centre
  3. ActSerial heat map

Parts list

Tick anything you already have and the total updates.

PartQtyPrice
  • Waveshare MLX90640 IR Array Thermal Imaging Camera, 32×24 Pixels, 110° FOV
    GB-IOWC-0654

    Thermal array camera, 110° view

    × 1₹6,769₹6,769
  • ESP32-WROOM-32 38-Pin Development Board
    GB-IOWC-1403Guide

    Reads the sensor quickly over I2C

    × 1₹389₹389
  • Solderless Breadboard
    GB-PROT-0001Guide

    Holds the parts without soldering

    × 1₹18₹18
  • Dupont Jumper Wires (40 pcs)
    GB-WIRE-0001Guide

    Connects the parts

    × 1₹49₹49

Complete kit

4 of 4 parts in one tap

₹7,225

GST included

3% off these parts while the whole kit stays in your cart

Parts you still need

₹7,225

4 of 4 parts. Tick anything you already have.

About ₹2,16,750 before bulk pricing for 30 kits.

Request bulk quote

Learn the parts

  • ESP32 DevKit Board (WROOM-32, 30 and 38 Pin)
  • Arduino Uno

Calculators for this build

  • Electricity cost calculator

Wiring

Follow the colours: red is power, dark grey is ground, blue is a signal.

PartPinConnect toNote
MLX90640VCC / GND3.3V / GND
MLX90640SDA / SCLGPIO21 / GPIO22
  • MLX90640VCC / GND → 3.3V / GND
  • MLX90640SDA / SCL → GPIO21 / GPIO22
Built it? Check your wiring before you power up.Pick the pin each wire went to and we'll point out swapped pins, power mistakes and pins that clash.

Step-by-step build

0 of 5 done

Code

thermal.inoVerify & upload in Electrolark
#include <Adafruit_MLX90640.h>
Adafruit_MLX90640 mlx;
float frame[32 * 24];

void setup() {
  Serial.begin(115200);
  Wire.begin(21, 22);
  Wire.setClock(800000);
  if (!mlx.begin(MLX90640_I2CADDR_DEFAULT, &Wire)) { Serial.println("MLX90640 not found"); while (1) delay(10); }
  mlx.setMode(MLX90640_CHESS);
  mlx.setResolution(MLX90640_ADC_18BIT);
  mlx.setRefreshRate(MLX90640_2_HZ);
}

void loop() {
  if (mlx.getFrame(frame) != 0) { Serial.println("Frame error"); return; }
  float lo = 999, hi = -999;
  for (float t : frame) { lo = min(lo, t); hi = max(hi, t); }
  // coarse 16 x 12 map: . cool  o warm  O hot  @ hottest
  for (int y = 0; y < 24; y += 2) {
    for (int x = 0; x < 32; x += 2) {
      float t = frame[y * 32 + x], k = (t - lo) / max(hi - lo, 0.1f);
      Serial.print(k > 0.9 ? '@' : k > 0.66 ? 'O' : k > 0.33 ? 'o' : '.');
    }
    Serial.println();
  }
  Serial.printf("min %.1f C  max %.1f C  centre %.1f C\n\n", lo, hi, frame[12 * 32 + 16]);
  delay(500);
}

Troubleshooting

Sensor not found+

Check the I2C wires and that the module is set to I2C.

Frame errors+

Lower Wire.setClock to 400000 and shorten the wires.

Readings too low on metal+

Bare metal reflects; measure on tape or paint.

FAQ

Is it accurate enough for fever checks?+

No, it is a maker sensor, not a medical device.

Can I see a colour image?+

Yes, draw the frame on a TFT or send it to a PC.

What range does it measure?+

Typically -40 to 300 °C, depending on the version.

What parts do I need to build the find hot spots and heat leaks with an MLX90640 thermal camera?+

4 parts: Waveshare MLX90640 IR Array Thermal Imaging Camera, 32×24 Pixels, 110° FOV, ESP32-WROOM-32 38-Pin Development Board, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.

How hard is it and how long does it take?+

It is a intermediate project and takes about 2 hours. The build on this page has 5 steps.

Do I need to write the code myself?+

No. This page has the complete, tested code (thermal.ino).

How much does the find hot spots and heat leaks with an MLX90640 thermal camera cost to build?+

About ₹7,225 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.

What will I learn from this project?+

How thermopile array sensors work; I2C speed and frame rates; Emissivity: why shiny metal reads wrong.

Is it safe to build?+

Do not open live mains panels to take readings; a qualified electrician should do that.

What can I build next with these parts?+

Ideas that reuse this build: Depth camera people counter. They are listed under Take it further on this page.

Take it further

  • Depth camera people counter

Related projects

  • UNO
    Sensor
    Beginner· 1 hour

    LPG gas leak alarm

    A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.

    ₹505 · 8 partsArduino
  • NANO
    Sensor
    Beginner· 1–2 hours

    Smoke alarm with OLED readout

    See the smoke level live on a crisp screen and get a loud warning when it spikes.

    ₹539 · 6 partsArduino
  • UNO
    Sensor
    Beginner· 45 minutes

    Flame detector fire alarm

    An infrared eye that spots an open flame and raises the alarm.

    ₹434 · 8 partsArduino
  • UNO
    Sensor
    Beginner· 1 hour

    PIR intruder alarm

    Walk into the room and it sounds the alarm: the classic first security build.

    ₹459 · 8 partsArduino

Learning project. Check every circuit and the datasheet of each part before you power it up.

Ask the Community

Ask a question Share your build