try connecting different port, the demo script you are using 0th pin right? try to use the same pin in the AWS IoT Script too?
Also you can find the sensor is reading raw value from it’s analog port and value greater than 700 consider as High pollution.
if sensor_value > 700:
print ("High pollution")
elif sensor_value > 300:
print ("Low pollution")
else:
print ("Air fresh")
Source: https://github.com/DexterInd/GrovePi/blob/master/Software/Python/grove_air_quality_sensor.py