script to detect people at home

First version, works only with iPhones.