I can see this question has been asked multiple times around the internet (and here), however I have come across so many methods, solutions and component values, and I am not advanced enough with electronics to decide for my specific situation.
I have a sunshine duration sensor that simply outputs a 5V signal when it is sunny and a 0V signal when it is shady. I would like to read the value of this signal on a GPIO pin, once a second, to build up a tally of how long it has been sunny for. However, the GPIO pins are obviously 3.3V inputs only.
What would be the best way to get this 5V output signal down to a 3.3V signal that the GPIO pin can accept? I've read about voltage dividers, voltage regulators, level shifters, simple circuits and breakout boards of more complex components, but am not really sure what the best method or device/component would be to accomplish this.