Smart Sensors for Residential Security Systems