controlling poe hat

Hi,
I am running a pi3 system with poe hat on. I wanted to control the fan with some script provided on other sites. I have added the following at the end of the config.txt

PoE Hat Fan Speeds

dtparam=poe_fan_temp0=50000
dtparam=poe_fan_temp1=60000
dtparam=poe_fan_temp2=70000
dtparam=poe_fan_temp3=80000

After reboot, the fan started to be on and off with a few seconds interval. After powering off the pi this kept on happening.
ISC2 is turned on.
Any idea?
thanks

Just got it working. Somehow did a mistake and I2C was not activiated. After i did activate it everything works fine.