I am replacing an old floodlight with a new Ring spotlight camera that is on the same breaker as a pre-existing Ring spotlight. I’m adding a second Ring for additional coverage around our property. The first Ring I installed tied into a black, white, and ground wire. It’s been working fine for the past several months. After removing the old floodlight, the wiring coming from the house is black, red, white, and ground. While installing the new Ring I tied into the black, white, and ground—and just put a wire nut on the end of the loose red wire (as shown in image). After flipping the breaker, the new Ring is getting power, but the old one is not.
Do I need to tie the red wire in so that I continue getting power to the pre-existing Ring? Why is there a red wire on this anyways?