created function that maps alpha triggers to sensor values