Serial communication in touchdesigner working with Uno but not with Mega

They are communicating when I disable DTR in touchdesigner. But then the values aren't being read properly so there's a lot of flickering.