diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts
index 4e1b371c3224226aa025ba1ff62f797aeb1703a0..495acb5e31720864f8b7fadb3aa025e813341028 100644
--- a/src/app/dashboard/dashboard.component.ts
+++ b/src/app/dashboard/dashboard.component.ts
@@ -99,7 +99,7 @@ export class DashboardComponent implements OnInit {
         this.chart.destroy();
         this.readings = {
           labels: res.map((reading: any) => this.getReadableDate(reading.timestamp)),
-          title: this.sensorsData?.find((sensor: any) => sensor.name === sensorId)?.name,
+          title: res[0].readings[0].name,
           data: res.map((reading: any) => reading.readings[0].value)
         };
         this.drawChart();