Step down 41V to 21V to read the MPM3160 Buck Converter output on Raspberry Pi

I’m trying to find the best way to reduce the voltage from my 41V power supply down to the 21V needed so that I can read the 3.3V output from the MPM3610 buck converter on a Raspberry Pi GPIO pin. I’m trying to use it as a switch so when the output reads either 3.3V or 0V I’ll know the state of the switch. Are there any suggestions about the best way to go about doing this? Thanks.

Exactly what you said…use a stepdown converter and/or logic level converter :smiley: