I am trying to help my dad with a project of his where were trying to build a lighthouse powered by solar panel in which it spins a motor at night and charges battery during the day. This is a DC application. We have the front end, being charging the battery all figured out. However, the backend, being controlling motor and having motor only turn at night, is the hard part. We have a controller for controlling the speed of the motor working with no issues. It is the last part that we need help with, which is the photocell sensor light switch. We figured that we need to place the photocell between the battery and the speed controller. The photo sensor switch says it works for AC and DC application and says AC/DC on the device we received. The directions that came with it state this for working with DC application, "black line connect to input power (-) negative. White line connect to input power (+) positive and load device (+) positive. Red line connect to load device (-) negative." So I believe line is meaning wire and load device will be the speed controller with power being my battery. I have tried it using the directions and doesn't work. I looked on comments on the amazon page where we brought the products (got 2 of them) and the comment said that black wire is hot wire with red wire goes to load and then white wire is ground. That didn't work either. I have waited at least a minute with light shining directly at the sensor and it doesn't turn off the motor to simulate day. Here is a link to my diagram with both directions based and amazon comment based that I tried: https://i.sstatic.net/abZwW.jpg
Here is a link to the sensor on amazon: https://www.amazon.com/gp/product/B01M1O3C1V/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
Here is a link to the speed controller on amazon: https://www.amazon.com/gp/product/B00F839VNQ/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
here is a link to the motor: https://www.amazon.com/gp/product/B07FKKWSFJ/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1
The battery is a car battery rated for 12 volts and 23 amp max. The speed controller is rated for 6v-90v at a max of 15 amp. The sensor is rated for 12 volts at 10 amp max. We need the speed controller to slow the speed of the motor as it is way to fast for those of you wondering. The motor is rated for 12 volts at 150 watts max. I do not know if I have fried the sensor or not, but I do not think so because I do not smell any smoke or anything and it is NOT black to indicate frying it. I do have the second one I can use, but I prefer not to use it until I know for sure what I did wrong in case my current one is damaged, if it is.
So my question is what is wrong with my diagram or why isn't it working? Thanks in advance.