Most - if not all - STM32 MCUs have a number of on-chip ADCs which can be used to measure analogue voltages. For this example, we are going to be using a so-called "Black Pill" board.