Just a caveat about the Photosensor.
What model are you using?
If it's this Kit one:

Then the power wiring gets a bit unusual.
The signal connects to the Digital Sidecar, but it can be unwise to take power for this particular sensor from there.
It doesn't handle voltage dips well.
We can describe what to do, but I don't want to clutter the thread if you're using some other model.
P.S.
I'll take a look at your revision Bill. I just have had only snippets of time over the past couple of days.
I know a lot of new names for snow now, but not in polite company...