Datasheet
Python &
CircuitPython
It's easy to use the MLX90640 sensor with Python and CircuitPython, and the Adafruit CircuitPython
MLX90640 (https://adafru.it/IBv) module. This module allows you to easily write Python code that reads temperature
using the thermal camera.
You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python
thanks to Adafruit_Blinka, our CircuitPython-for-Python compatibility library (https://adafru.it/BSN).
CircuitPython Microcontroller Wiring
First wire up a MLX90640 to your board for an I2C connection, exactly as shown below. Here's an example of wiring a
Feather M4 to the sensor with I2C:
Board 3V to sensor VIN (red wire)
Board GND to sensor GND (black
wire)
Board SCL to sensor SCL (yellow wire)
Board SDA to sensor SDA (blue wire)
Python Computer Wiring
Since there are
dozens
of Linux computers/boards you can use, we will show wiring for Raspberry Pi. For other
platforms, please visit the guide for CircuitPython on Linux to see whether your platform is
supported (https://adafru.it/BSN).
Here's the Raspberry Pi wired with I2C:
© Adafruit Industries https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera Page 18 of 30










