We define ourselves to be conscious (even if we don't know exactly what that means). We assume that other humans are similar to ourselves, and we (at least sometimes) see mental activity in other humans that we recognize as being similar to our own. Therefore we conclude that other humans are conscious.