added pagination for viewing sensor data