Not equals is != on the Arduino and not <>

should have said said I wrote the code off the top of my head