Smart sensors for home safety