Have you looked at this?
I believe there’s a code sample that detects if the health increases or decreases