Relay is being high at starting, Can we make it Low at start up until input matches

Please review this, especially the part about posting code