I was me already and learned all possible distance measurement technologies, chipsets and so on.
No
ready cheap tiny long distance solution at all
It's just sensor for school, but ... not 4m, but 10m is required. But no honest (real 10m) ready solution.