HELP passage count

hello so here I want to create an arduino program which will allow me to initiate a number example 300 and when an object passes in front of a sensor makes minus 1 so what will give 299 and displayed this result on an LCD someone can help me

PS: with an ultrasonic sensor if possible

Please give it your best attempt. We are here to voluntarily help not to do it for you... please try researching and figuring it out yourself first.

hello I did my research and it is the reverse of what I want that I found that what matters what passes in front

try to write your own code, then ask for help if you get stuck and post your code and wiring diagram or circuit drawing... again no one here to do it for you. Or hire someone?

problm i dont good for coding

then you will not do well with Arduino.

you will not know a little program to reduce a number when it's a button pressed

zardiiax:
problm i dont good for coding

If you just want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.

...R

Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.

zardiiax:
you will not know a little program to reduce a number when it's a button pressed

Easy

IfButtonIsPressed
then
--i

When I started I got a starter kit and worked through it, this is one I got recently and looks to be above average. Take a few days to work through things but should get you going in the correct direction and you should also be able to ask better questions and have a good start on your code.

https://store.arduino.cc/usa/arduino-starter-kit