@herb What are you hoping to achieve as Digital rating only provides a 1 or 0.
the only way to get values is through analogue and there is a project in the project zone of uiflow 2 found here https://uiflow2.m5stack.com/?pkey=3dd144a31f32480e9a7ed95461a9107a