Zero out the Z axis. Then jog upward. Is it now reading a negative number?
If so, it is backwards.You can change direction under the config, homing and limits.