Seeing that you disassembled things to clean everything out, there is a good chance that you forgot to attach (or possibly damaged) **the magnetic sleep sensor cable/battery indicator cable assembly**.

You can diagnose this by putting a magnet on the right side of the MacBook (where the battery lights are).  If it doesn't go to sleep, it's probably not connected.  Another good test is to run [Apple Hardware Test (AHT)](https://support.apple.com/en-us/HT201257).  Hold the D key while booting from a powered off state with the AC adapter connected.  If there is an issue with your sensor, it should show up in this test.

You will find the connector to the right of the battery terminal.  If it is in fact damaged, a replacement is quite inexpensive ([Apple PN# 922-9061][1])


[![enter image description here][2]][2]


  [1]: http://radnex.us/2009-MBP-13-Battery-Indicator-Sleep-Sensor
  [2]: https://i.sstatic.net/qBL6H.jpg