General Program Architecture Assistance

I am trying to write Arduino code for the project shown below in the block diagram:

block.emf (7.55 KB)

I see 3 inputs and 2 outputs.

So, what do you want to do with them and what have you tried ?