Keynote talk at MDM 2004. A tasting of technical challenges and societal questions for sensor networks. Focus on the multi-layer optimization problem of computing different classes of functions over sensornet topologies. Also summarizes recent discussions on legal implications of sensornet privacy, joint with Boalt School of Law at UC Berkeley.