quesion for Serial communication

Hi, guys, I am doing a line following robot project and recently I replaced my Uno by a Mega board but I found the line following module wont work anymore.
This is the link for my line following module:
https://www.sunfounder.com/wiki/index.php?title=Line_Follower_Module

The wiring and program are not changed but when a Mega board is used, I can only receive 0 as the sensor value. So do I need to change the address of LF module or any other code?

On a mega the I2C pins are not A4 and A5 but 20 and 21 :wink:

Arduino R3 version UNO, Mega ... have redundant I2C pins on the same place next to the AREF pin (leftmost pins on upper header). They are labeled on bottom side.

Thanks guys! problem fixed!