old_contents: import time
  import mraa
  
  # Connect the Grove Air Quality Sensor to analog port A0
  # SIG,NC,VCC,GND
  
  get_sensor_value = True
  air_sensor_value = 0
  air_quality_sensor = mraa.Aio(1)
  
  def get_air_quality():
      '''Returns a tuple, a float value and a string.'''
      try:
          air_sensor_value = air_quality_sensor.readFloat()
          return air_sensor_value
      except IOError:
          return -1
  
  main()
  
new_contents: import time
  import mraa
  
  # Connect the Grove Air Quality Sensor to analog port A0
  # SIG,NC,VCC,GND
  
  get_sensor_value = True
  air_sensor_value = 0
  air_quality_sensor = mraa.Aio(1)
  
  def get_air_quality():
      '''Returns a tuple, a float value.'''
      try:
          air_sensor_value = air_quality_sensor.readFloat()
          return air_sensor_value
      except IOError:
          return -1
  
  main()
  
subject: Return Vsig from sensor.