Design of a WSN Platform for Long-Term Environmental Monitoring for IoT Applications