programmatically fetch data per sensor