from pytouch.sensors import DigitSensor
from pytouch.tasks import TouchDetect
digit_sensor = DigitSensor(transform=my_transforms_compose)
touch_detect = TouchDetect(digit_sensor, model_path="/path/to/custom/model/")
...
is_touching = touch_detect(my_input)