Sensor PIR + display seven leds counter

every time that the sensor is active (sensorPir==HIGH) a counter plus one(+1).

I don't think you want to increment the counter every time the sensor IS active. I think you want to increment the counter when the sensor BECOMES active. This requires that you keep track of the previous state of the sensor, to compare to the current state of the sensor. Only when the state changes, and the state is HIGH should you increment the counter.