HMC5883L Issues

Hi I am trying to code a HMC5883L to detect vehicles. Unfortunately even though I am able to get readings on the graphs I want to light up an LED red when it detects a vehicle signature.

I also want to smoothen the graph to get a threshold value.

Please Help.

Post your code, using code tags ("</>" button) and explain the problems you are having.