# PyPortal Smart Thermometer with Analog Devices ADT7410, Adafruit IO and CircuitPython

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/073/517/medium800thumb/temperature___humidity_ezgif.com-video-to-gif_%2813%29.jpg?1553173104)

_Connected your PyPortal to the internet and want to do more with **data**?_

You'll be using the Analog Devices [ADT7410](https://www.adafruit.com/product/4089) built-into your PyPortal as a thermometer to measure the ambient temperature over I2C.

But what makes this thermometer particularly&nbsp; **_smart?_**

You'll be&nbsp;sending temperature data to the internet - using&nbsp;_the best data service in the world_&nbsp;-&nbsp;[Adafruit IO](http://io.adafruit.com/)&nbsp;- for **real-time data visualization** and **long-term data logging**.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/073/498/medium800thumb/temperature___humidity_ezgif.com-video-to-gif_%2812%29.jpg?1553108976)

 **Want to give your PyPortal Thermometer _more intelligence_?** set up a Action on Adafruit IO to email you if the PyPortal Thermometer dips below (or goes above!) a certain temperature threshold value.

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/073/317/medium800/temperature___humidity_triggers_freezing.png?1552943460)

We'll be using the [Analog Devices ADT7410](https://www.analog.com/en/products/adt7410.html) built into the PyPortal to measure the ambient temperature over I2C

![temperature___humidity_adafruit_io_adt.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/306/medium640/temperature___humidity_adafruit_io_adt.jpg?1552930742)

You'll also be using the ambient light sensor, which points through the front of the PyPortal, to turn on the PyPortal's display.

**Wave at the PyPortal to&nbsp;display the temperature along with the current date and time**.

The date and time are obtained&nbsp;from Adafruit IO and are based on your PyPortal's IP address - you don't need to add an&nbsp;[RTC](https://www.adafruit.com/product/3013)&nbsp;or fiddle with time zones!

![temperature___humidity_ezgif.com-video-to-gif_(10).gif](https://cdn-learn.adafruit.com/assets/assets/000/073/482/medium640thumb/temperature___humidity_ezgif.com-video-to-gif_%2810%29.jpg?1553099130)

![temperature___humidity_circuitpython_PyPortalPinouts_LightSensorFront.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/354/medium640/temperature___humidity_circuitpython_PyPortalPinouts_LightSensorFront.jpg?1553013552)

## CircuitPython Code

CircuitPython is great for building Internet-of-Things projects. Using the&nbsp;[Adafruit IO CircuitPython module](https://github.com/adafruit/Adafruit_CircuitPython_AdafruitIO), you can easily send data to Adafruit IO, receive data from Adafruit IO, and easily manipulate data with the powerful Adafruit IO API.

You can rapidly update your code without having to compile and store WiFi and API secret keys on the device. This means that there's no editing code and re-uploading whenever you move the PyPortal to another network - just update a file and you're set.&nbsp;

![temperature___humidity_cpy_code.png](https://cdn-learn.adafruit.com/assets/assets/000/073/355/medium640/temperature___humidity_cpy_code.png?1553013761)

## Prerequisite Guides

If you're new to Adafruit IO or CircuitPython, take a moment to walk through the following guides to get you started and up-to-speed:

- [Welcome to Adafruit IO](https://learn.adafruit.com/welcome-to-adafruit-io/)
- [Welcome to CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython)

## Parts

You only need a PyPortal for this guide - you'll be using the temperature and light sensors included with the PyPortal. No other sensors or external circuitry required!

### Adafruit PyPortal - CircuitPython Powered Internet Display

[Adafruit PyPortal - CircuitPython Powered Internet Display](https://www.adafruit.com/product/4116)
 **PyPortal** , our easy-to-use IoT device that allows you to create all the things for the “Internet of Things” in minutes. Make custom touch screen interface GUIs, all open-source, and Python-powered using&nbsp;tinyJSON / APIs to get news, stock, weather, cat photos,...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4116)
[Related Guides to the Product](https://learn.adafruit.com/products/4116/guides)
![Front view of a Adafruit PyPortal - CircuitPython Powered Internet Display with a pyportal logo image on the display. ](https://cdn-shop.adafruit.com/640x480/4116-00.jpeg)

### Part: USB Cable
quantity: 1
USB cable - USB A to Micro-B - 3 ft
[USB Cable](https://www.adafruit.com/product/592)

- [Next Page](https://learn.adafruit.com/pyportal-smart-thermometer-with-analog-devices-adt7410-adafruit-io-and-circuitpython/install-circuitpython.md)

## Featured Products

### Adafruit PyPortal - CircuitPython Powered Internet Display

[Adafruit PyPortal - CircuitPython Powered Internet Display](https://www.adafruit.com/product/4116)
 **PyPortal** , our easy-to-use IoT device that allows you to create all the things for the “Internet of Things” in minutes. Make custom touch screen interface GUIs, all open-source, and Python-powered using&nbsp;tinyJSON / APIs to get news, stock, weather, cat photos,...

Out of Stock
[Buy Now](https://www.adafruit.com/product/4116)
[Related Guides to the Product](https://learn.adafruit.com/products/4116/guides)
### USB cable - USB A to Micro-B

[USB cable - USB A to Micro-B](https://www.adafruit.com/product/592)
This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or microcontroller

Approximately 3 feet / 1 meter long

In Stock
[Buy Now](https://www.adafruit.com/product/592)
[Related Guides to the Product](https://learn.adafruit.com/products/592/guides)

## Related Guides

- [Adafruit PyPortal - IoT for CircuitPython](https://learn.adafruit.com/adafruit-pyportal.md)
- [PyPortal Roku Remote](https://learn.adafruit.com/pyportal-roku-remote.md)
- [Upgrading AirLift ESP32 Firmware](https://learn.adafruit.com/upgrading-esp32-firmware.md)
- [PyPortal Retro Cases](https://learn.adafruit.com/pyportal-retro-compys.md)
- [PyPortal Guitar Tuner](https://learn.adafruit.com/pyportal-guitar-tuner.md)
- [TFT Spirit Board](https://learn.adafruit.com/tft-spirit-board.md)
- [Creating Slideshows in CircuitPython](https://learn.adafruit.com/creating-slideshows-in-circuitpython.md)
- [Electronic History of the Day with PyPortal](https://learn.adafruit.com/electronic-history-of-the-day-with-pyportal.md)
- [Arcada Animated GIF Display](https://learn.adafruit.com/pyportal-animated-gif-display.md)
- [PyPortal Email Display with Zapier and Adafruit IO](https://learn.adafruit.com/pyportal-email-display.md)
- [Using LittlevGL with Adafruit Displays](https://learn.adafruit.com/using-littlevgl-with-adafruit-displays.md)
- [PyPortal MQTT Sensor Node/Control Pad for Home Assistant](https://learn.adafruit.com/pyportal-mqtt-sensor-node-control-pad-home-assistant.md)
- [PyPortal Wall Mount](https://learn.adafruit.com/pyportal-wall-mount.md)
- [A Logger for CircuitPython](https://learn.adafruit.com/a-logger-for-circuitpython.md)
- [Custom Fonts for CircuitPython Displays](https://learn.adafruit.com/custom-fonts-for-pyportal-circuitpython-display.md)
