
    In a sorted sequence of sensor readings from transit vehicles, where each normal reading appears exactly twice (during startup and shutdown), develop a function to identify the single anomalous reading that appears only once, indicating a potential maintenance issue. The function should efficiently process the sorted sensor data to isolate this unique reading that could signal a system malfunction.
    

    
def search(arr):
    """
    In a sorted sequence of sensor readings from transit vehicles, where each normal reading appears exactly twice (during startup and shutdown), develop a function to identify the single anomalous reading that appears only once, indicating a potential maintenance issue. The function should efficiently process the sorted sensor data to isolate this unique reading that could signal a system malfunction.
    

    """
def search(arr):
    """
    In a sorted sequence of sensor readings from transit vehicles, where each normal reading appears exactly twice (during startup and shutdown), develop a function to identify the single anomalous reading that appears only once, indicating a potential maintenance issue. The function should efficiently process the sorted sensor data to isolate this unique reading that could signal a system malfunction.
    

    """
    n = len(arr)
    XOR = 0
    for i in range(n):
        XOR = XOR ^ arr[i]
    return XOR