Why is the proximity sensor not working?

The proximity sensor on my screen keeps on locking my screen when on call despite my phone not being close to me and screen won't work until the call is ended

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0