Probably something to do with your script. Looks like you have this:
Code:
if ($hpevent <=25){
instead of this, which is what you should be using:
Code:
if ($hpevent == 25){
Not completely sure that is the cause of your issue, but that is my best guess.