Chosen Solution
I got my Macbook as a Christmas present this year, used. I noticed that when I close it, it takes about a minute for it to sleep (only because I set it to sleep after a minute of inactivity). Then, when I open it, it doesn’t wake until I press something. I’ve tried doing many things, including “pmset -g assertions” and the only thing preventing it is “com.apple.iohideventsystem.queue.tickle” but it doesn’t say anything like “preventsystemsleep”. Is the sensor broken? How would I fix that?
Did it always act this way? What OS are you running, The last two releases have had a lot of sleep/wake issues. If you have not changed the OS you could have a corrupt .plist file. Create a new user account and use it just as a test. Does it act the same or as you expected. If the behavior stops you have eliminated a hardware problem. You can go back to your main account and try to track it down (deleting a corrupt .plist file is a “fix” for strange application behavior). If this answer is acceptable please remember to return and mark it accepted.
I had the same problem. After spending 2h with the apple care hotline I had to do a clean install. But then it worked. Just make a time machine backup before hand in order not to lose date.
Most likely cause is an idiot who replaced the screen and messed up the sleep magnet. Second most likely cause is a liquid damaged BIL.