control laser input/output

There may be signal noise, perhaps low-pass filtering is needed?