Exploiting the Gaia EDR3 photometry to derive stellar temperatures