Using Arduino to measure current or electron flow in earth

this is highly contested in main stay science that the Sun and planets all are in a huge electric circuit

Not contested at all, the idea of a "circuit" is simply nonsense. But the sun does emit charged particles, called the solar wind.