An IoT approach for wireless sensor networks applied to e-health environmental monitoring