Inkbird/Engbird Thermometer and Hygrometer sensor. Need help trying to add them to HA

Been trying but there seems to be an issue that I am unfortunately not talented enough to address.

2021-03-09 20:22:14 ERROR (MainThread) [homeassistant.components.sensor] inkbird: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 465, in async_device_update
    await task
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/inkbird/sensor.py", line 139, in update
    self.handleDiscovery(dev)
  File "/config/custom_components/inkbird/sensor.py", line 167, in handleDiscovery
    battery = int(value[14:16], 16)
ValueError: invalid literal for int() with base 16: ''