LED dimming affects sensor data

I tried now with a 4.7K? pull-up resistor but without success. Then I took the data line cable and changed its pin from 7 to 13 on the Arduino board. Unfortunately this did not solve the problem. Do you see anything else I could try?