The existing answers to the question suggest that the code is yellow because the individual has committed a thought crime. This could mean that the individual has done something that is not considered socially acceptable or that is against the law. In order to turn the code to green, the individual needs to ensure that they are doing what is considered essential by the relevant authorities. This could include following the law, obeying social norms, and taking necessary precautions to protect themselves and others. Depending on the specific situation, this may include wearing a face mask, social distancing, and avoiding large gatherings.