Smart home leak sensor