Use Sensors / BarcodeScanner. Then send the text result to ESP2 via BLE (extension) or Classic Bluetooth