COPENHAGEN — On a busy road in the center of town here, a string of green lights embedded in the bike path — the “Green Wave” — flashes on, helping cyclists avoid red traffic lights.

On a main artery into the city, truck drivers can see on smartphones when the next light will change. And in a nearby suburb, new LED streetlights brighten only as vehicles approach, dimming once they pass.

Aimed at saving money, cutting the use of fossil fuels and easing mobility, the installations are part of a growing wireless network of streetlamps and sensors that officials hope will help this city of roughly 1.2 million meet its ambitious goal of becoming the world’s first carbon-neutral capital by 2025.

Eventually, the network will serve other functions, like alerting the sanitation department to empty the trash cans and informing bikers of the quietest or fastest route to their destinations. It’s all made possible through an array of sensors embedded in the light fixtures that collect and feed data into software.