# Best way to visualize real-time sensor data in Bokeh?

**URL:** <https://discourse.bokeh.org/t/best-way-to-visualize-real-time-sensor-data-in-bokeh/12682>\
**Category:** Community Support\
**Created:** [December 21, 2025, 9:04pm UTC](https://discourse.bokeh.org/t/best-way-to-visualize-real-time-sensor-data-in-bokeh/12682 "2025-12-21T21:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aria\_2](https://discourse.bokeh.org/letter_avatar_proxy/v4/letter/a/e19b73/32.png) [@aria\_2](https://discourse.bokeh.org/u/aria_2)\
**Post date:** [December 21, 2025, 9:04pm UTC](https://discourse.bokeh.org/t/best-way-to-visualize-real-time-sensor-data-in-bokeh/12682/1 "2025-12-21T21:04:41Z")

</div>

Hi everyone, I’m trying to build a Bokeh dashboard that updates in near-real-time from IoT sensor data (e.g., readings from temperature or motion detectors), and I’m curious what the best integration pattern is for those frequent updates without overwhelming the server or client. For context, I’ve been looking at this ESP32 motion-detection project [https://www.theengineeringprojects.com/2022/03/iot-based-motion-detection-with-email-alert-using-esp32.html](https://www.theengineeringprojects.com/2022/03/iot-based-motion-detection-with-email-alert-using-esp32.html) which shows how an ESP32 sends sensor data via HTTP, and it made me think about ingesting and streaming that into Bokeh.

I’ve also seen Arduino forum threads and Raspberry Pi community projects where people push sensor values via REST or MQTT into dashboards or databases. For those who’ve done something similar, should I be using websockets, periodic callbacks with server pushed patches, or another pattern for smooth real-time updates in Bokeh? Any examples or pitfalls to watch out for would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads.bokeh.org/original/2X/1/14eb24f9e10e4e9b78e3f10f66c04ffa96446e5a.svg) [@system](https://discourse.bokeh.org/u/system)\
**Post date:** [March 21, 2026, 9:04pm UTC](https://discourse.bokeh.org/t/best-way-to-visualize-real-time-sensor-data-in-bokeh/12682/2 "2026-03-21T21:04:46Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
