[![STM32F107 Pinout][1]][1] [![enter image description here][2]][2] I found the sensor output a voltage ranged 0~5V, which is higher than the ADC port can tolerate with (in STM32F1XX datasheet all ADC ports can only tolerate 3.3V). How to make it accessible to input 0~5V ,without destroying MCU and, not losing too much accuracy of analog voltage input? [The datasheet of sensor][1] [1]: https://file:///C:/Users/Dell2/Desktop/TSW-30.pdf [2]: https://i.sstatic.net/7TPPm.png