how to use iot for environmental monitoring