Interfacing sensors via digital I/O in Simulink