“Hence” is a conjunctive adverb that expresses the relationship between cause and effect in a statement.
“Hence” can be replaced with “therefore”, “as a result”, etc., and should be immediately followed by a comma usually when a semicolon precedes it.
When used to mean “from now”, it doesn’t require a comma.