Zero crossing detector

I am not that sure bout it...