recognize if a led is connected on a digital out

thx all, i will give a try to this solutions!

Nice day, Rudi