I am in a college science method and design class. In this class, we are designing a near space experiment that we will send up in a high altitude balloon. For one experiment we are collecting mold spores at a higher altitude. We have a HS-311 Standard Servo motor that opens a door and an altimeter that keeps track of the altitude. I have a separate script working for each of them, but I cannot figure out how to make them work together in one program. I need to have the altimeter to reach a certain altitude and tell the motor to turn on and open a door to collect the mold spores.
Any suggestions would be greatly appreciated.