A cloud-based Cyber-Physical System for environmental monitoring