Taking a wild stab at your vague description, I'm going to guess you want some form of open-collector circuit connected to your arduino. I'd use either a 2n7000 or 3N3904 as two typical examples of those for up to maybe 100ma (give or take, they can go higher).