Scientists have developed a tiny temperature sensor that harvests energy from magnetic fields near electrical wiring.