An embodiment of the present application provides a method, device, medium, and program product for sensor value matching, which relates to the technical field of
rule matching. The method includes: in response to a
rule matching request for a value to be matched, obtaining a target node structure corresponding to the value to be matched from a pre-constructed set of node structures; determining a target value range of the value to be matched relative to the target node structure, obtaining a rule
linked list corresponding to the target value range from the target node structure, and determining a
rule matching result corresponding to the value to be matched based on the rule
linked list. By constructing node structures corresponding to each numerical node, the embodiment of the present application first matches the node structure corresponding to the value to be matched when matching values, and then obtains the corresponding rule
linked list from the structure as the matching result according to the numerical size relationship between the value to be matched and the node structure, so that it is not necessary to
traverse and match all rules, greatly improving the efficiency of value matching.