Researchers at Stanford modified commercially available solar panels to generate a small amount of electricity at night by exploiting a process known as radiative cooling, which relies on the frigid vacuum of space. When an object is facing the sky at night, it radiates heat out to outer space, which means that an object can become cooler than the air temperature around it. This effect could have obvious applications in cooling buildings, but the difference in temperature can also be used to generate electricity.
