Combining Arduino firmware for micromanager with external hardware firmware

Hello,

How can I combine Arduino firmware for micro-manager with additional firmware for controlling external hardware in series, e.g. this one: arduino/TSL1401 at d294f8910982478576fa5f6dfa1d2a2c54663657 · empierre/arduino · GitHub (taken from this project: https://www.instructables.com/Arduino-Spectroscope-With-TSL1401-and-Display)? In the end, I would like to be able to read the output of the TSL1401 camera in the micro-manager through the Arduino board to set up a microscope autofocus system, based on the camera’s readings.

Thanks in advance for your help

pgFocus, a focus stability controller, uses that sensor.

more here: https://micro-manager.org/wiki/PgFocus and here: http://big.umassmed.edu/wiki/index.php/PgFocus