Design, Deployment, and Testing a Device with Edge Computing Energy Efficiency Algorithm for Water Quality Monitoring