How to display on my number of free parking on 4 digit 7segment using IR obstacl

And where should i start initializing my count? in the setup or before?