Magnetometer not work in iPhone x

Please help, I buy used iphone x logic board, all sensor works, except magnetometer. Can you explain where is a position of magnetometer sensor in iphone x.

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

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2944067:02crwdne2944067:0:

I'm not sure why an iPhone would need a magnetometer... Could you explain?

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

Dear thank you for message,. My compass app not working, needle is in the lock position. I testing my iphone x to all sensor works, expect magnetometer sensor. I need some person to explain what happened ? Accelerometer, Gyroscope, Motion, Linear accelaration, Gravity sensor works with any problem. If somobody have some answer, I change housing, is this possible in housing some flat cable not ok ?

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0