Complete the code to initialize the drone's main motor.
motor = DroneMotor([1])The motor needs a power level to start functioning.
Complete the code to read the drone's GPS coordinates.
coordinates = gps.get_[1]()GPS provides the current location coordinates of the drone.
Fix the error in the sensor data reading code.
temperature = sensor.read_[1]()The sensor must read temperature data, not humidity or pressure.
Fill both blanks to create a dictionary of sensor readings with their values.
readings = { [1]: sensor.get_[2]() }The dictionary key should be a string naming the sensor, and the method called should match the sensor type.
Fill all three blanks to filter sensors with values above threshold and create a result dictionary.
result = { [1]: [2] for [3] in sensors if sensors[[3]] > threshold }We use 'sensor' as the variable name, get its value from sensors[sensor], and iterate over sensors.
