The STM32L4 has the capability of counting people with the ToF sensor?
..
..
Would have been helpful if you had said that, instead of just "STM32L4" - then people would know what you're talking about:
https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html
There's a description of the ToF sensor in the User Manual:
See section 7.2.6
With a range of "up to 2m", it sounds like it should be feasible to do some sort of people counting.
Take a look at the supporting Tools & Software:
https://www.st.com/en/evaluation-tools/b-l475e-iot01a.html#tools-software
Probably also take a look at the resources on the ToF Sensor's Product Page:
https://www.st.com/en/imaging-and-photonics-solutions/vl53l0x.html
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.