IoT-based warning systems