I am getting live data from an IOT device which I am saving in MYSQL using NODEJS server I have to check the On and Off status Also I have a timestamp column. My problem is I ha