Smart cities rely on sensors and data to measure everything from traffic flow, rainfall, and water and sewer functions to health care intervention needs and even crime. Smart streetlights turn themselves on based on ambient lighting and even get their bulbs changed when necessary. Sensors in water pipes and sewage lines optimally manage supply and flow. Garbage bins broadcast a signal when they need to be emptied.