4V AD590 interfaced to 3.3V MCU
This sensor produces a current output. 
From the data sheet:  "The device
acts as a high impedance, constant current regulator passing
1 μA/K."
Just choose your R40 to not go over the STM32's 3.3V limit and you won't need any voltage divider.