Kann Arduino Nano eine Spannung ausgeben?

so i can write it more correctly and better describe my goal &:

on my model-railway cars are recognized by reflection light barriers

there are 2 of this for every section, one counting up and one counting down.
so if the difference is not zero, then one or more cars remained in the section.

if this is a fault, arduino should give alarm signal and perhaps act otherwise..