AnalogWrite not working in If Statement

else if(sensor = baslangic){

That is an assignment statement, not a comparison. = != ==

else if ((start < sensor < maxVal)) {

That is NOT how to test that a value is in a range. That is testing that start < sensor, which is either true or false, is less than maxVal. Unless maxVal is less than 2, that statement will always be true.