A simple voltage divider with resistors and some protection is actually nothing to call an industrial solution. Due to its sharper curve characteristics a TVS (transient voltage suppressor) would be better protection than a simple zener diode, in addition to that Schottky diodes from GND to ADC input & from ADC input to VDD would be highly recommended to avoid overvoltage stress at the parasitic body diodes.
However - the industrial way of interfacing these input voltages is usually an optocoupler for galvanic isolation, while the optocoupler can be controlled passively (lossy) or actively (much lower losses). By using an active interface you can also interface directly with the STM32, i.e. without optocouplers. Such an active interface could be the CLT03-2Q3 (datasheet on tab Resources), which is targeted towards 24V applications but can also work on 32V without any problems.
The so-called High side - non isolated configuration shown at the bottom of page 11 may be the circuit you can use in your application (High Side got its name from the sensor contact at the input).
Good luck!
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.