How can I turn on a Raspberry PI GPIO pin based on presence of ~22vdc?

OK, hang on.