How to display real time data of a proximity sensor in bolt?

Please provide its HTML code and javascript