3V3 uC input protection from higher voltage?
The MCU input is likely of quite high impedance. You can increase R4 into the kiloOhms to limit any current flowing in MCU protection diodes due to over voltage. Check your data sheet. Putting in D2 won't hurt either