This repo was cloned and adapted from btleplug.
The example that was adapted is event_driven_discovery
, which is one specific example to receive Bluetooth data only from an from external HC-SR04 sensor.
The original repository with all relevant information about what btleplug can do can be found here.