By Third Law of thermodynamics;
s = k ln(p)
where;
s = entropy
k=Boltzmann constant
p= Probability of finding a molecule at a particular point
When temperature rises, anyhow, Internal energy and hence the kinetic energy (k.e)increase as well for the ideal substance. Increased k.e calls for more randomness of particles which would certainly change the probability and hence the entropy.
This belies the common processes that we encounter in many power cycles. Where does it go wrong?