A low-cost IoT solution for power availability improvement in hospitals