This $800 device uses machine learning to help you avoid a catastrophic flood