You may have asked yourself before how aircraft know their height above sea level while flying, in fact, planes know the height from the value of atmospheric pressure, In this tutorial we will explain the use of the BMP180 sensor for measuring atmospheric pressure and temperature.
In this tutorial, we will learn how to work the BMP 180 pressure sensor with Arduino code to measure atmospheric pressure and temperature and altitude. This sensor has a very small shape through which the atmospheric pressure can be measured. Also, as this pressure decreases as it rises above sea level, it can also be used to get altitude.
Connect the wires between the BMP180 and the Arduino, as shown in the image below.
Connections from the BMP180 to arduino :
• Vin → Arduino 5V pin
• GND → Arduino GND pin
• SCL → Arduino pin A5
• SDA → Arduino pin A4
Now access the serial monitor on your Arduino IDE by clicking on the magnifying glass icon at the top right corner.
Now, as shown in the image below, the serial monitor displays temperature and pressure and altitude.