In its simplest form, I would say sin is standing in opposition to God instead of cooperation with him.
If that is accepted then the question shifts to how do we know when, or if, we are doing this?
Of course, this requires acknowledgment that God exists, at least in some form, in the first place.