retrieve meta key when checkbox is used

You need to add the third parameter to get_post_meta(), so get_post_meta( get_the_ID(), 'home', true ) should at least get you closer. Just a note, in future, try doing a var_dump() or print_r() on the variable(s) in the condition that are evaluating in an unexpected manner, if you’d done that here you would have seen that it was outputting an array, not the int/string you were expecting 🙂