# PyLeap CLUE Barometer

## Overview

https://youtu.be/XuQ2IPYOwf8

In this project, you'll utilize the CLUE's onboard BMP280 sensor to measure ambient temperature and air pressure. The PyLeap app will wirelessly load the project onto your CLUE over BLE.

The CLUE display will show the temperature and air pressure readings in either metric (Celsius and hectopascals) or imperial (Fahrenheit and inches of mercury) units. The code takes into account the air pressure reading and your _nominal baseline pressure_ to adjust the servo's angle to point to a weather condition.

![](https://cdn-learn.adafruit.com/assets/assets/000/115/844/medium800/projects_edited_P1390012.jpg?1665519176)

## Barometric Pressure and Weather

[Barometric pressure](https://en.wikipedia.org/wiki/Atmospheric_pressure), or air pressure, is the measure of the pressure resulting from air pressing down on the Earth due to gravity. Since this pressure varies with altitude, different locations on Earth will have different nominal pressure values. However, weather can also affect this pressure. Taking both of these pieces of information into account, [a barometer can be used to display weather conditions](https://education.nationalgeographic.org/resource/barometer), depending on if you have a higher or lower than nominal pressure reading for your location.

![Day 5 forecast of surface pressure across North America as well as the Pacific and Atlantic oceans](https://upload.wikimedia.org/wikipedia/commons/a/ac/Day5pressureforecast.png https://commons.wikimedia.org/wiki/File:Day5pressureforecast.png)

## Parts
### Adafruit CLUE - nRF52840 Express with Bluetooth® LE

[Adafruit CLUE - nRF52840 Express with Bluetooth® LE](https://www.adafruit.com/product/4500)
Do you feel like you just don't have a CLUE? Well, we can help with that - get a CLUE here at Adafruit by picking up this sensor-packed development board. We wanted to build some projects that have a small screen and a lot of sensors. To make it compatible with existing projects, we made...

In Stock
[Buy Now](https://www.adafruit.com/product/4500)
[Related Guides to the Product](https://learn.adafruit.com/products/4500/guides)
![Animated GIF showing CLUE board  displaying data from the many on-board sensors.](https://cdn-shop.adafruit.com/product-videos/640x480/4500-04.jpg)

### Micro Servo with Alligator Clips

[Micro Servo with Alligator Clips](https://www.adafruit.com/product/5592)
This servo is&nbsp;[just like our classic Micro Servo](https://www.adafruit.com/product/169)&nbsp;but has 3 alligator clip test leads&nbsp;at the end! This makes it perfect for plug-and-play support with any of our boards with alligator-clip-friendly input/output pins, like the <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/5592)
[Related Guides to the Product](https://learn.adafruit.com/products/5592/guides)
![Video of a servo with alligator clips connected to a round microcontroller with pads. The horns on the servo oscillate.](https://cdn-shop.adafruit.com/product-videos/640x480/5592-00.jpg)

### Clear Acrylic Enclosure + Hardware Kit for Adafruit CLUE

[Clear Acrylic Enclosure + Hardware Kit for Adafruit CLUE](https://www.adafruit.com/product/4675)
Here is a chic&nbsp;minimalist enclosure for your **CLUE** board! This case&nbsp;has been laser-cut specifically to accommodate the TFT display, tactile buttons, and capacitive pads.

And of course, we include&nbsp;mounting hardware so you can assemble it right onto your CLUE...

In Stock
[Buy Now](https://www.adafruit.com/product/4675)
[Related Guides to the Product](https://learn.adafruit.com/products/4675/guides)
![Angled shot of a Clear Acrylic Enclosure + Hardware Kit for Adafruit CLUE.](https://cdn-shop.adafruit.com/640x480/4675-04.jpg)

### 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)
![USB cable - USB A to Micro-B - 3 foot long](https://cdn-shop.adafruit.com/640x480/592-01.jpg)

### 3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip

[3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip](https://www.adafruit.com/product/3287)
This battery holder connects 3 AA batteries together in series for powering all kinds of projects. We spec'd these out because the box is compact, and 3 AA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries, plus it has&nbsp;a nifty&nbsp;on-off...

In Stock
[Buy Now](https://www.adafruit.com/product/3287)
[Related Guides to the Product](https://learn.adafruit.com/products/3287/guides)
![Angled shot of 3 x AA battery holder with on/off switch, JST, and belt clip.](https://cdn-shop.adafruit.com/640x480/3287-00.jpg)

### Alkaline AA batteries (LR6) - 3 pack

[Alkaline AA batteries (LR6) - 3 pack](https://www.adafruit.com/product/3521)
Battery power for your portable project! These batteries are good quality at a good price, and work fantastic with any of the kits or projects in the shop that use AAs. This is a pack of **3 AA batteries**.  
  
These batteries are Alkaline (MnO2) chemistry, with a voltage...

In Stock
[Buy Now](https://www.adafruit.com/product/3521)
[Related Guides to the Product](https://learn.adafruit.com/products/3521/guides)
![Angled shot of 3 AA batteries.](https://cdn-shop.adafruit.com/640x480/3521-00.jpg)

### Part: Paper Plate
quantity: 1
Paper plate to mount the servo and CLUE to

- [Next Page](https://learn.adafruit.com/pyleap-clue-barometer/connect-the-servo-to-the-clue.md)

## Featured Products

### Adafruit CLUE - nRF52840 Express with Bluetooth® LE

[Adafruit CLUE - nRF52840 Express with Bluetooth® LE](https://www.adafruit.com/product/4500)
Do you feel like you just don't have a CLUE? Well, we can help with that - get a CLUE here at Adafruit by picking up this sensor-packed development board. We wanted to build some projects that have a small screen and a lot of sensors. To make it compatible with existing projects, we made...

In Stock
[Buy Now](https://www.adafruit.com/product/4500)
[Related Guides to the Product](https://learn.adafruit.com/products/4500/guides)
### Micro Servo with Alligator Clips

[Micro Servo with Alligator Clips](https://www.adafruit.com/product/5592)
This servo is&nbsp;[just like our classic Micro Servo](https://www.adafruit.com/product/169)&nbsp;but has 3 alligator clip test leads&nbsp;at the end! This makes it perfect for plug-and-play support with any of our boards with alligator-clip-friendly input/output pins, like the <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/5592)
[Related Guides to the Product](https://learn.adafruit.com/products/5592/guides)
### Clear Acrylic Enclosure + Hardware Kit for Adafruit CLUE

[Clear Acrylic Enclosure + Hardware Kit for Adafruit CLUE](https://www.adafruit.com/product/4675)
Here is a chic&nbsp;minimalist enclosure for your **CLUE** board! This case&nbsp;has been laser-cut specifically to accommodate the TFT display, tactile buttons, and capacitive pads.

And of course, we include&nbsp;mounting hardware so you can assemble it right onto your CLUE...

In Stock
[Buy Now](https://www.adafruit.com/product/4675)
[Related Guides to the Product](https://learn.adafruit.com/products/4675/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)
### 3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip

[3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip](https://www.adafruit.com/product/3287)
This battery holder connects 3 AA batteries together in series for powering all kinds of projects. We spec'd these out because the box is compact, and 3 AA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries, plus it has&nbsp;a nifty&nbsp;on-off...

In Stock
[Buy Now](https://www.adafruit.com/product/3287)
[Related Guides to the Product](https://learn.adafruit.com/products/3287/guides)
### Alkaline AA batteries (LR6) - 3 pack

[Alkaline AA batteries (LR6) - 3 pack](https://www.adafruit.com/product/3521)
Battery power for your portable project! These batteries are good quality at a good price, and work fantastic with any of the kits or projects in the shop that use AAs. This is a pack of **3 AA batteries**.  
  
These batteries are Alkaline (MnO2) chemistry, with a voltage...

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

## Related Guides

- [Introducing Adafruit CLUE](https://learn.adafruit.com/adafruit-clue.md)
- [CircuitPython BLE Morse Code Chat](https://learn.adafruit.com/circuitpython-ble-wireless-morse-code-chat.md)
- [CLUE BLE MIDI Glove](https://learn.adafruit.com/clue-midi-glove.md)
- [CLUE Slim Case](https://learn.adafruit.com/clue-slim-case.md)
- [Adafruit Bonsai Buckaroo](https://learn.adafruit.com/adafruit-bonsai-buckaroo.md)
- [Yoga Pose Chime](https://learn.adafruit.com/yoga-pose-chime.md)
- [¡Bienvenido a CircuitPython!](https://learn.adafruit.com/bienvenido-a-circuitpython-2.md)
- [CircuitPython CLUE I Ching Caster](https://learn.adafruit.com/clue-i-ching-caster.md)
- [CLUE Rock, Paper, Scissors Game using Bluetooth](https://learn.adafruit.com/rock-paper-scissors-circuitpython.md)
- [Using the Bluefruit Dashboard with Web Bluetooth in Chrome](https://learn.adafruit.com/bluefruit-dashboard-web-bluetooth-chrome.md)
- [CLUE Sensor Plotter in CircuitPython](https://learn.adafruit.com/clue-sensor-plotter-circuitpython.md)
- [PyLeap CLUE Sensor Plotter](https://learn.adafruit.com/pyleap-clue-sensor-plotter.md)
- [CircuitPython BLE Multi-Temperature Monitoring](https://learn.adafruit.com/circuitpython-multi-temperature-ble-monitoring.md)
- [CLUE Vertical Garden Weather Visualizer](https://learn.adafruit.com/clue-vertical-garden-weather-visualizer.md)
- [Clue And MagTag Pep Talk Generator](https://learn.adafruit.com/clue-and-magtag-pep-talk-generator.md)
- [Creative Inspiration Activity Generator](https://learn.adafruit.com/creative-inspiration-activity-generator.md)
