A smart algorithm for human presence detection and actuation of networked sensor nodes.