Now that you can observe changes in air pressure, you are going to code a program that warns you if the pressure changes! You have probably seen these types of sensors in action in car tires. If the tire pressure is low, it wears out the tires and makes it unsafe to drive.
Let’s replicate this sensor with your drone. First, find out what the normal pressure value is inside the bag. Assign this value to a variable. Then, use a repeat block to continuously check the air pressure. Include an if statement that checks if the air pressure increases above the starting value. If so, change the LED to red. Else, the LED should be green.