Energy Consumption Monitoring in IoT-based Smart Cities