The role of IoT in protecting the environment