AI and Linking it to a circuit
One way to construct an artificial neuron looks like this:

$$y_k = \psi \left(\sum_{j=0}^{m}w_{kj}x_{j}\right)$$


Source: Wikipedia: Artificial Neuron

If you've already trained your system and you don't plan on training in on the AVR then you can take the constants and the topology you can code these up with for loops.