IoT to Protect Homes and Cities From Effects of Climate Change