Control of analog input via Ground

it is about indicate direction analog input. LED indicator.
The analog input is up to 5V, so I converted information from the direction indicator to Ground. I did not want to let go of 12V. Unfortunately, the LED now lights up permanently and flashes only when the direction change indicator is switched on. Can you make some adjustment in the settings or I convert everything to 5V?
Thanks for the information

Already resolved with the help of a digital input :see_no_evil: :grinning: