I want to create a custom widget which blurs the image partially after getting the measurements from device

Hi Rushikesh,
a good starting point is probalbly Christians Cumulocity IoT Web Development Tutorial. In Part 3 (Link) he describes how to query the last measurement from a device and how to subscribe to realtime notifications.

Best regards,
Felix