Screen goes black

I

iMore Question

Hi guys. So i have iphone 6s and when i receive a voice message with messenger and play it, if i put my finger near or exactly on proximity sensor, screen goes black for a second and voice stops playing but in a second it turns back normal. So thats the problem with it and i d like hear solutions from you