Bug Fix: After enabling and disabling hearbeat sensor, ps/als could not fuction