Chosen Solution
After water damage, the MBP stays on with the lid closed. I can put it to sleep through the menu, but it will still turn on, once I close the lid. How to solve ? Thanks a lot for your thoughts!
The location of the Hall Sensor! Click on the image is zoom it up. / / / / / / /
You’ll need to take the logic board out and carefully clean the corrosion from the logic board using 85% isopropyl alcohol and a soft toothbrush being careful not to snag the small components as you can pull them off! follow this guide: MacBook Pro 13" Retina Display Early 2015 Logic Board Replacement
I’m not sure what model you have, but there are magnets located in the display panel that interact with sensors located under the top case. If there was water damage, it’s possible that it shorted out the sensor and it’s not reacting to the magnet. If you run a paper clip along the side of the screen, you’ll find the magnet. Then closing the lid will show you where the sensor is. If it’s near where the water damage occurred, then the sensor probably needs replaced.