You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2023-02-08 11:00:03.4473329000 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10535
2023-02-08 10:00:09.5340394350 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/1218
2023-02-08 10:00:06.8460250790 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/703
2023-02-08 10:00:06.5220233460 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/1212
2023-02-08 10:00:06.2460218730 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/1560
2023-02-08 10:00:04.6780134930 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/1556
2023-02-08 10:00:04.6180131730 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/703
2023-02-08 10:00:03.6580080430 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10534
2023-02-08 10:00:02.0419994110 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/2124
2023-02-08 09:00:03.7618098340 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10533
2023-02-08 08:00:08.7457398280 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/1217
2023-02-08 08:00:07.3817287130 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/1559
2023-02-08 08:00:06.7497235650 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/702
2023-02-08 08:00:05.3937125180 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/1555
2023-02-08 08:00:05.3577122230 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/1211
2023-02-08 08:00:04.1177021220 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/702
2023-02-08 08:00:03.3696960270 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10532
2023-02-08 08:00:02.1816863460 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/2123
2023-02-08 07:00:03.1480997820 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10531
2023-02-08 06:00:09.6166896870 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/1216
2023-02-08 06:00:07.0806739260 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/1558
2023-02-08 06:00:06.8006721860 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/1210
2023-02-08 06:00:06.1046678620 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/701
2023-02-08 06:00:05.2086622920 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/1554
2023-02-08 06:00:03.5886522270 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/701
2023-02-08 06:00:03.4326512550 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10530
2023-02-08 06:00:02.3886447640 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/2122
2023-02-08 05:00:03.2938505260 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10529
2023-02-08 05:00:01.3338416190 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/2121
2023-02-08 04:00:11.2270598950 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/1215
2023-02-08 04:00:07.8550430670 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/1209
2023-02-08 04:00:06.2830352290 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/700
2023-02-08 04:00:05.1470295630 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/1557
2023-02-08 04:00:04.2110248990 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/700
2023-02-08 04:00:03.6430220670 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/1553
2023-02-08 04:00:03.1470195970 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10528
2023-02-08 03:00:02.9731283120 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10527
2023-02-08 03:00:02.3131246530 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/2120
2023-02-08 02:00:07.7897655780 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/1214
2023-02-08 02:00:07.5017635810 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/699
2023-02-08 02:00:06.8217588550 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/1556
2023-02-08 02:00:05.6057504070 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/699
2023-02-08 02:00:05.2577479890 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/1208
2023-02-08 02:00:04.5617431530 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/1552
2023-02-08 02:00:03.4137351810 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/10526