Hinge sensor not detected

My outer screen is always blank and using the rear selfie feature causes the phone to crash. The outer screen is working because when I turn the phone on it displays the Google logo without issue. I downloaded Castro and have found that the hinge angle sensor is not outputting any data and I'm wondering how to replace the hinge angle sensor.

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

crwdns2934109:0crwdne2934109:0

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